import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
import 'package:get/get.dart';

import 'show_html_controller.dart';

class ShowHtmlPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetX<ShowHtmlController>(
        init: ShowHtmlController(),
        builder: (controller) {
          return Scaffold(
              appBar: AppBar(title: Text('显示html')),
              body: HtmlWidget(
                controller.data.value,
              ));
        });
  }
}
